package com.ss.sdg.interfacedependence;

import java.util.Stack;

/**
 * stack of node
 * @author WangXin
 */
public class IDStack {

	Stack<Node> nodes = new Stack<Node>();

	public Node top() {
		return this.nodes.peek();
	}

	public void pop() {
		this.nodes.pop();
	}

	public void push(Node node) {
		this.nodes.push(node);
	}

	public boolean isEmpty() {
		return this.nodes.isEmpty();
	}
}
